package com.qkst.website.web.service;

import java.util.List;
import java.util.Map;

import com.qkst.website.web.bean.CollectionBean;

/**
 * @author lihao
 * @description 收藏service
 * @date 2017-05-11
 * @email ahlxlihao@163.com
 */
public interface CollectionService {

	/**
	 * 根据条件查询收藏
	 * @param collection
	 * @return
	 */
	public List<CollectionBean> queryCollectionList(CollectionBean collection);
	
	/**查询总记录数
	 * @param collection
	 * @return
	 */
	public int queryCount(CollectionBean collection);

	/**
	 * 添加收藏
	 * @param collection
	 * @param result 
	 * @return Map<String, Object>
	 */
	public void save(CollectionBean collection, Map<String, Object> result);

	/**
	 * 取消收藏
	 * @param collection
	 * @param result
	 */
	public void cancel(CollectionBean collection, Map<String, Object> result);


}
